﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TVideo.Util
{
    public static class WebsiteUtil
    {
        private static Dictionary<string, string> _websites = new Dictionary<string, string>();

        static WebsiteUtil()
        {
            Init();
        }

        public static string GetUrl(string key)
        {
            if (_websites.ContainsKey(key))
            {
                return _websites[key];
            }
            return string.Empty;
        }

        private static void Init()
        {
            _websites = new Dictionary<string, string>();
            _websites.Add("iqiyi", "https://www.iqiyi.com");
            _websites.Add("youku", "https://www.youku.com");
        }
    }
}
